package com.piao.pojo;

import java.util.Date;

//博客表：ID(主键)，标题，类别，内容，创建时间，更新时间，浏览量，是否推荐

public class Blog {
    private String id;
    private String title;
    private String type;
    private String content;
    private Date createTime;
    private Date updateTime;
    private int views;
    private Boolean recommend;

    public Blog() {
    }

    public Blog(String id, String title, String type, String content, Date createTime, Date updateTime, int views, Boolean recommend) {
        this.id = id;
        this.title = title;
        this.type = type;
        this.content = content;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.views = views;
        this.recommend = recommend;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public int getViews() {
        return views;
    }

    public void setViews(int views) {
        this.views = views;
    }

    public Boolean getRecommend() {
        return recommend;
    }

    public void setRecommend(Boolean recommend) {
        this.recommend = recommend;
    }

    @Override
    public String toString() {
        return "Blog{" +
                "id='" + id + '\'' +
                ", title='" + title + '\'' +
                ", type='" + type + '\'' +
                ", content='" + content + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", views=" + views +
                ", recommend=" + recommend +
                '}';
    }

}
